/**
 * 工程师画像 Api
 */
import instance from '@/utils/request'

const path = {
  getTop: 'engineerProfile/getTop',
  getDataList: 'engineerProfile/getDataList',
  getEngineerProfile: 'engineerProfile/getEngineerProfile',
  getChart: 'engineerProfile/getChart',
  getFirstLevelInfo: 'engineerProfile/getFirstLevelInfo',
  getSecondLevelPortrait: 'engineerProfile/getSecondLevelPortrait',
  getProfileInfo: 'engineerProfile/getProfileInfo',
  getGridExcel: 'common/getGridExcel'
}

export const getTopApi = (params: any) => {
  return instance({
    url: path.getTop,
    method: 'post',
    data: params
  })
}

export const getDataListApi = (params: any) => {
  return instance({
    url: path.getDataList,
    method: 'post',
    data: params
  })
}

export const getEngineerProfileApi = (params: any) => {
  return instance({
    url: path.getEngineerProfile,
    method: 'post',
    data: params
  })
}

// 获取雷达图数据
export const getChartApi = (params: any) => {
  return instance({
    url: path.getChart,
    method: 'post',
    data: params
  })
}

export const getFirstLevelInfoApi = (params: any) => {
  return instance({
    url: path.getFirstLevelInfo,
    method: 'post',
    data: params
  })
}

export const getSecondLevelPortraitApi = (params: any) => {
  return instance({
    url: path.getSecondLevelPortrait,
    method: 'post',
    data: params
  })
}

export const getProfileInfoApi = (params: any) => {
  return instance({
    url: path.getProfileInfo,
    method: 'post',
    data: params
  })
}

export const getGridExcelApi = (params: any) => {
  return instance({
    url: path.getGridExcel,
    method: 'post',
    data: params
  })
}
